Namespaces

Functions

string
__(string $string, array $placeholders = [])

Shortcut for translator translate method

at line 12
abort(int $code, string|null $message = null)

Stops the code execution and sends an HTTP response code

at line 296
abort_if(bool $condition, int $code, string|null $message = null)

Stops the code execution and sends an HTTP response code if $condition

at line 327
array
array_to_object(array $data)

Converts an array to object

at line 122
mixed
config(string $key = "", mixed $default = null)

Get a value from a confing in the "config" folder

at line 202
array
content_of(string $path)

Get contents of a directory

at line 17
csrf_input()

Prints the csrf input

at line 53
string|null
csrf_token()

Get current csrf token

at line 45
array
dom_element_attributes(DOMElement $element)

Gets the attributes of a DOMElement

at line 45
mixed
dot_notation_array(string $key, array $array, mixed $default = null)

Access items of an array using dot notation

at line 135
string
env_var(string $key = "", mixed $default = null)

Shortcut for \App\System\Env::get() method

at line 378
string
generate_html_attributes(array $attributes)

Converts an array to attributes string

at line 166
string
get_absolute_path(string $path)

This works like realpath but works even if the file doesn't exist

at line 251
string
get_contents(string $url)

file_get_contents with simulated user agent

at line 55
string
get_json_error(array $array)

Gets the last json error as readable string

at line 356
array
kvsort(array $array, $key, $order = SORT_ASC)

Sorts array by key value kv = key value

at line 343
string
main_path(string $path = "")

Get an absolute path from "main" folder

at line 287
method_input(string $method)

Prints the method input

at line 62
string
minify_css(string $css)

Minify the given CSS

at line 186
mixed
module_config(string $module, string $key = "", mixed $default = null)

Get a value from a module config

at line 224
module_view(string $filename, array $args = [])

Helper for \App\System\MVC\View\View::module

at line 22
array
object_to_array(mixed $item)

Converts an object to array

at line 105
pretty(mixed $var)

Prints a detailed description of $var

at line 37
string
project_folder(string $path = "")

Build a path from ABSOLUTE|RELATIVE/projects/PROJECT_FOLDER/$path

at line 240
project_view(string $view_path, array $args = [])

Shortcut to get a project view

at line 34
recursive_copy(string $source, string $dest)

Makes a recursive copy of the contents of source path to destination path

at line 86
RedirectResponse
redirect(string $url, array|null $data = [], int|null $code = 302)

No description

at line 27
request()

Shortcut for \App\System\Http\ServerRequest::get() method

at line 8
string
root_path(string $path = "")

Get an absolute path from root folder

at line 276
router()

Get the singleton instance of the Router.

at line 19
string
url(string $name, array $parameters = [])

Generate a URL for a named route.

at line 10
Validator
validator(...$args)

Shortcut for validator

at line 10
view(string $filename, array $args = [])

Helper for \App\System\MVC\View\View::get

at line 10